﻿@{
    Layout = "~/Areas/CPP/Views/Shared/_MasterLayout.cshtml";
    var company = ViewBag.Company as CompanyInfo;
}
@{ Html.RenderAction("CLeft", "CCompany", new { cid = company.CompanyID });}
<div class="sy_center">
    <div class="pro_list2">
        <div class="pro_kuang">
            <div class="jjtiao">
                <div class="jjtext">企业简介</div>
                <div class="more" style="margin-left: 660px"><a href="@Url.RouteUrl("CPP_company", new { controller = "CCompany",action="CPDetail" })?cid=@company.CompanyID">详情...</a></div>
            </div>
            <div class="jjkuang">
                <div class="jjinfo">
                    @*<img src="/Areas/cpp/company/img/1357366123436.jpg" border="0" height="106" width="149">*@
                    <p style="text-indent: 2em;">
                        <span>
                            @company.Intro.Trim(100)
                        </span>
                    </p>
                </div>
            </div>
        </div>
    </div>
    <div class="pro_list2">
        <div class="pro_kuang">
            <div class="jjtiao">
                <div class="jjtext">产品列表</div>
                <div class="more" style="margin-left: 660px"><a href="@Url.RouteUrl("CPP_company", new { controller = "CCompany",action="CProducts" })?cid=@company.CompanyID">更多...</a></div>
            </div>
            <div class="jjkuang">
                @{
                    var products = ViewBag.Products as IEnumerable<ProductInfo>;
                    foreach (var productInfo in products)
                    {
                    <div class="product_item">
                        <div class="product_item_img">
                            <a href="@Url.RouteUrl("CPP_product", new { controller = "CCompany", action = "PDetail", pid = productInfo.Id })">
                                <img alt="@productInfo.ProductName" src="@productInfo.Image" /></a>
                        </div>
                        <div class="product_item_title">
                            <a href="@Url.RouteUrl("CPP_product", new { controller = "CCompany", action = "PDetail", pid = productInfo.Id })" title="@productInfo.ProductName">@productInfo.ProductName.Trim(11)</a>
                        </div>
                    </div>
                    }
                }

            </div>
        </div>
    </div>
</div>
